package algorithms.threadpool;

import java.util.Random;
import java.util.UUID;
import java.util.concurrent.TimeUnit;

public class SendMesTest {
    public static void main(String[] args) throws InterruptedException {
        SendMes sendMes = new SendMes();
        Random random = new Random();
        for (int i = 0 ;i<500;i++) {
            sendMes.send("你好呀！！！"+ i);
            TimeUnit.MILLISECONDS.sleep(random.nextInt(1000));
        }
        System.out.println("发送完毕！！！");
        TimeUnit.SECONDS.sleep(5);

    }
}
